package com.akcome.apollo.service.impl;

import java.util.List;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.akcome.apollo.domain.VStatsWorkersDay;
import com.akcome.apollo.dto.WorkerScore;
import com.akcome.apollo.repository.VStatsWorkersDayRepository;
import com.akcome.apollo.service.VStatsWorkersDayService;


/**
 * VIEWService接口实现
 *
 * @author wn
 * @version $v: 1.0.0, $time:2017-12-26 08:49:00 Exp $
 */
@Service
public class VStatsWorkersDayServiceImpl implements VStatsWorkersDayService {

	private Logger logger = LoggerFactory.getLogger(this.getClass());

	@Autowired
	private VStatsWorkersDayRepository vStatsWorkersDayRepository;
	
	@Override
	public VStatsWorkersDay save(VStatsWorkersDay vStatsWorkersDay){
		return vStatsWorkersDayRepository.save(vStatsWorkersDay);
	}
	
	@Override
	public VStatsWorkersDay findOne(Long id){
		return vStatsWorkersDayRepository.findOne(id);
	}
	
	@Override
	public List<WorkerScore> findSpeedByPuid(Long puid,String beginDate,String endDate){
		return vStatsWorkersDayRepository.findSpeedByPuid(puid, beginDate, endDate);
	}
}
